package club.janna.springboot.study.util;

public class JannaDataSourceHolder {

    private static final ThreadLocal<Type> THREAD_LOCAL = new ThreadLocal<>();

    public static Type get() {
        return THREAD_LOCAL.get();
    }

    public static void set(Type type) {
        THREAD_LOCAL.set(type);
    }

    public static enum Type {
        READ, WRITE;
    }
}
